package com.itheima.homework.work2;
//鸟类
public class Bird extends Animal{
    public Bird() {
    }

    public Bird(String age, String color) {
        super(age, color);
    }
    public void action(){
    }
}
//鹦鹉
class Parrot extends Bird{
    public Parrot() {
    }

    public Parrot(String age, String color) {
        super(age, color);
    }

    @Override
    public void action() {
        System.out.println("飞行");
    }
}
